package com.whc.common;

public interface Constant {
    interface Message {
        String ILLEGALITY_REQUEST = "非法请求";
        String LOGIN_EXPIRE = "登录过期";
        String OFF = "拒绝请求";
        String REQUEST_DATA_FAIL = "请求数据错误";
        String NOTHING_DATA = "无数据";
        String OP_TYPE_NOT_FOUND = "未找到操作类型";
        String TYPE_NOT_FOUND = "类型未找到";
        String X_PWF_SB = "想破我防是吧?";
    }

    interface OP_TYPE {
        String SAVE = "save";
        String UPDATE = "update";
        String SAVE_OR_UPDATE = "save_or_update";
        String DELETE = "delete";
        String LIST = "list";
        String PAGE = "page";
        String DETAIL = "detail";
        String TEMP = "temp";
    }

    interface VARIABLE_NAME {
        String TYPE = "type";
    }

    interface SAVE_TYPE {
        String SAVE_TYPE_ONE = "one";
        String SAVE_TYPE_MANY = "many";
    }

    interface FLAG {
        String PRIMARY_KEY = "@";
        /**
         * =等于,!=不等于,#in,!#not in,%like,^排序asc,!^排序desc,<>(日期/数值)范围
         */
        String EQUAL = "=";
        String UNEQUAL = "!=";
        String IN = "#";
        String NOT_IN = "!#";
        String LIKE = "%";
        String ASC = "^";
        String DESC = "!^";
        String BETWEEN = "*";
    }
}
